package org.smile.design.decorator.homework;

public abstract class CustomFormProcess extends FormProcess {
    private FormProcess formProcess;

    public CustomFormProcess(FormProcess formProcess) {
        this.formProcess = formProcess;
    }

    @Override
    String form() {
        String s = super.getFormField() != null ? super.getFormField() + "::" : "";
        String f = formProcess.form() != null ? formProcess.form() : "";
        return s + f;
//        return this.getFormField() + formProcess.form();
    }

    @Override
    String approval() {
        String s = super.getFormApproval() != null ? super.getFormApproval() + "::" : "";
        String f = formProcess.approval() != null ? formProcess.approval() : "";
        return s + f;
//        return super.getFormApproval() + formProcess.approval();
    }
}
